@tailwind base;
@tailwind components;
@tailwind utilities;

/* 全局样式 */
:root {
  --color-primary: #e51f26;
  --color-secondary: #ff6f00;
  --color-dark: #333333;
  --color-light: #f8f8f8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

/* 自定义工具类 */
.news-card {
  @apply bg-white rounded-sm border border-news-border overflow-hidden hover:shadow-md transition-shadow duration-300;
}

.news-title {
  @apply font-bold text-dark hover:text-primary transition-colors duration-200;
}

.news-summary {
  @apply text-gray-600 text-sm line-clamp-2;
}

.news-meta {
  @apply text-gray-500 text-xs;
}

.nav-item {
  @apply px-3 py-2 hover:bg-light rounded-sm transition-colors duration-200;
}

.nav-item-active {
  @apply bg-primary/10 text-primary font-medium;
}
